package com.tea.funct.mapper;

import java.util.List;
import com.tea.funct.domain.TeaCategory;
import org.apache.ibatis.annotations.Param;

/**
 * 产品大类Mapper接口
 * 
 * @author Sophia
 * @date 2024-05-25
 */
public interface TeaCategoryMapper 
{
    /**
     * 查询产品大类
     * 
     * @param id 产品大类主键
     * @return 产品大类
     */
    public TeaCategory selectTeaCategoryById(Long id);

    /**
     * 查询产品大类列表
     * 
     * @param teaCategory 产品大类
     * @return 产品大类集合
     */
    public List<TeaCategory> selectTeaCategoryList(TeaCategory teaCategory);

    /**
     * 新增产品大类
     * 
     * @param teaCategory 产品大类
     * @return 结果
     */
    public int insertTeaCategory(TeaCategory teaCategory);

    /**
     * 修改产品大类
     * 
     * @param teaCategory 产品大类
     * @return 结果
     */
    public int updateTeaCategory(TeaCategory teaCategory);

    /**
     * 删除产品大类
     * 
     * @param id 产品大类主键
     * @return 结果
     */
    public int deleteTeaCategoryById(Long id);

    /**
     * 批量删除产品大类
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTeaCategoryByIds(Long[] ids);

    List<TeaCategory> selectTeaCategoryListAll();

    // 根据大类名称查询大类信息
    TeaCategory selectTeaCategoryByName(@Param("categoryName") String categoryName);
}
